package com.yuzhenxin.bookstore.service;

import com.yuzhenxin.bookstore.dao.CategoryDao;
import com.yuzhenxin.bookstore.domain.Category;

import java.util.List;

public class CategoryService {

    private final CategoryDao categoryDao = new CategoryDao();

    /**
     * 查询所有分类
     */
    public List<Category> findAll() {
        return categoryDao.findAll();
    }

}
